<div class="content-box">
	<div class="content-box-header">
		<h3>Add / Update</h3>
		<div class="clear"></div>
	</div> 
	<div class="content-box-content">
		<div class="">
			<form action="<?=base_url().'admincp/'.$module.'/save'?>" method="post">
				<input type="hidden" value="<?=$id?>" name="hiddenId" />
				<fieldset>
					<p>
						<label>Status</label>
						<input type="checkbox" name="status" <?php if(isset($result->status)){  if($result->status == 1) { print "checked='checked'"; } }else{ print "checked='checked'";}?>/>
					</p>
					<p> 
						<label>Parent</label> 
						<select name="parent_cat" class="small-input">
							<option value="0">Select...</option>
							<?php 
							foreach($parent_cat AS $p)
							{
							?>
							<option value="<?=$p->id?>" <?php if(isset($result->parent_id)){ if($result->parent_id == $p->id){ echo "selected";} }?>><?=$p->name?></option>
							<?php
							}
							?>
						</select>
						<br /><small>Tên của chuyên mục</small>
					</p>
					<p>
						<label>Category</label>
						<input class="text-input small-input" type="text" id="small-input" name="category" value="<?php if(isset($result->fullname)){ print $result->fullname; }else{ print ''; }?>"/> <span class="input-notification success png_bg">Successful message</span> <!-- Classes for input-notification: success, error, information, attention -->
						<br /><small>Tên của chuyên mục</small>
					</p>
					<p>
						<input class="button" type="submit" value="Submit" />
					</p>
				</fieldset>
				<div class="clear"></div>
			</form>
		</div>  
	</div> 
</div> 